<template>
  <view>
    <view class="search_bar_box">
      <view class="search_bar">
        <u-search
          class="mt20"
          placeholder="大家都在搜索代理记账"
          bg-color="#f5f5f5"
          clearabled
          :show-action="false"
          v-model="searchValue"
        ></u-search>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  props: {
    // searchWhat: String,
    searchValue:String,
    back:{
      type: String,
      default: 'forward'
    }
  },
  data() {
    return {
      searchWord: '',
    }
  },
  methods: {
    // 进入搜索

    // toSearch() {
    //   if (this.back == 'back') {
    //     uni.navigateBack({
    //       delta: 1,
    //     })
    //   } else {
    //     uni.navigateTo({
    //       url: `../../pageTwo/searchBarPage/index?searchWhat=${this.searchWhat}`,
    //     })
    //   }
    // },
  },
}
</script>
<style scoped lang="scss">
@import './index.scss';
</style>
